package com.amiu.shiro.db.permission;

import java.util.Date;

public class Permission {
	public long id;// 主键id;
	public String name;// 权限名;
	public String address;// 地址;
	public String code; // 编号;
	public String icon; // 图标;
	public long pid; // 上级权限主键;
	public int seq; // 排序;
	public Date create_time;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public long getPid() {
		return pid;
	}

	public void setPid(long pid) {
		this.pid = pid;
	}

	public int getSeq() {
		return seq;
	}

	public void setSeq(int seq) {
		this.seq = seq;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	
	@Override
	public String toString() {
		return "$Permission$ --> ID: "+id+",NAME: "+name+",ADDRESS: "+address+",CODE: "+code+",ICON: "+icon+",PID: "+pid+",SEQ: "+seq+",CREATE_TIME: "+create_time;
	}
}
